package com.it.travel.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.it.travel.dto.admin.AdminProductDTO;
import com.it.travel.pojo.Product;
import com.it.travel.vo.*;
import com.it.travel.vo.admin.AdminProductVO;
import org.apache.ibatis.annotations.Param;

import javax.xml.soap.Detail;
import java.util.List;
import java.util.Set;

public interface ProductMapper extends BaseMapper<Product> {
    List<AdminProductDTO> selectAdminProductPage(@Param("index") Integer index, @Param("size") Integer size,
                                                 @Param("keywords") String keywords);

    List<IndexDestinationVO> queryIndexDestinationInfoByCategoryName(
            @Param("condition") String condition, @Param("index") Integer index, @Param("size") Integer size);

    List<RouteVO> queryRouteInfo(@Param("categoryId") Integer categoryId, @Param("categoryId1") Integer categoryId1
            , @Param("categoryId2") Integer categoryId2, @Param("sort") Integer sort
    );

    DetailVO queryDetailById(@Param("id") Integer id);

    List<HotelVO> queryHotelInfo(@Param("categoryId") Integer categoryId, @Param("num") Integer num);

    DetailTicketVO queryDetailTicketById(Integer id);
}
